<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户主页</title>
    <link rel="stylesheet" href="fontawesome/css/all.min.css">
    <link rel="stylesheet" href="css/templatemo-style.css" charset="utf-8">
    <script src="js/jquery-3.3.1.js"></script>
    <script src="js/getParameter.js"></script>
    <!--

    Template 2105 Input

	http://www.tooplate.com/view/2105-input

    -->
<!--    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600">-->
    <link rel="stylesheet" href="css/bootstrap.min.css">
<!--    <link rel="stylesheet" href="css/materialize.min.css">-->
    <link rel="stylesheet" href="css/tooplate.css">
    <link rel="stylesheet" href="css/common.css">
<!--    <link rel="stylesheet" href="css/templatemo-style.css">-->
</head>

<body id="home">
<div class="header">
    <div class="logo wrapper">
        <a href="">
            <h1>我的主页</h1>
<!--            <p>XXX</p>-->
        </a>
    </div>
    <ul class="wrapper nav clearfix" id="showMy">
        <li class="nav-item" style="margin: 0px" >
            <a href="index.html" id="favorite">
                收藏夹
                <span>FAVORITE</span>
            </a>
        </li>
        <li class="nav-item"  style="margin: 0px">
            <a href="introduce.html" id="photoUpload">
                上传图片
                <span>PHOTOUPLOAD</span>
            </a>
        </li>
        <li class="nav-item"  style="margin: 0px">
            <a href="works.html" id="uploadRecord">
                上传记录
                <span>UPLOADRECORD</span>
            </a>
        </li>
        <li class="nav-item"  style="margin: 0px">
            <a href="works.html" id="userInfo">
                账户信息
                <span>USERINFO</span>
            </a>
        </li>
        <li class="nav-item"  style="margin: 0px">
            <a href="achievement.html" id="modifyPwd">
                修改密码
                <span>MODIFYPWD</span>
            </a>
        </li>

    </ul>
</div>
<!--    <div class="container tm-home-mt tm-home-container">-->
<!--        <div class="row">-->
<!--            <div class="col-12">-->
<!--                <div class="tm-home-left">-->
<!--                    <h1 class="tm-site-title">我的主页</h1>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="row">-->
<!--            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12">-->
<!--                <div class="tm-home-left mt-3 font-weight-light">-->
<!--                    <p class="tm-mb-35">This is a free <a href="http://www.tooplate.com/view/2105-input">HTML Form Package</a> provided by Tooplate. Five different input forms included.</p>-->
<!--                    <p class="tm-mb-35">Feel free to modify and use any form design. Please share it to your friends.</p>-->
<!--                    <p>Thank you!</p>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12">-->
<!--                <ul class="list-group tm-home-list tm-bg-black font-weight-light">-->
<!--                    <li class="d-flex justify-content-between align-items-center" id="favorite">-->
<!--&lt;!&ndash;                        <a href="register.html" class="tm-white-text">收藏夹</a>&ndash;&gt;-->
<!--                    </li>-->
<!--&lt;!&ndash;                    <li class="d-flex justify-content-between align-items-center">&ndash;&gt;-->
<!--&lt;!&ndash;                        <a href="signup.html" class="tm-white-text">下载记录</a>&ndash;&gt;-->
<!--&lt;!&ndash;                    </li>&ndash;&gt;-->
<!--                    <li class="d-flex justify-content-between align-items-center" id="photoUpload">-->
<!--&lt;!&ndash;                        <a href="photoUpload.html" class="tm-white-text">上传图片</a>&ndash;&gt;-->
<!--                    </li>-->
<!--                    <li class="d-flex justify-content-between align-items-center" id="uploadRecord">-->
<!--&lt;!&ndash;                        <a href="login.html" class="tm-white-text">上传记录</a>&ndash;&gt;-->
<!--                    </li>-->
<!--                    <li class="d-flex justify-content-between align-items-center" id="userInfo">-->
<!--&lt;!&ndash;                        <a href="survey.html" class="tm-white-text">账户信息</a>&ndash;&gt;-->
<!--                    </li>-->
<!--                    <li class="d-flex justify-content-between align-items-center" id="modifyPwd">-->
<!--&lt;!&ndash;                        <a href="application.html" class="tm-white-text">修改密码</a>&ndash;&gt;-->
<!--                    </li>-->
<!--                </ul>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
    <footer class="row tm-mt-big mb-3">
        <div class="col-xl-12 text-center font-weight-light">
            <p class="d-inline-block tm-bg-black white-text py-2 tm-px-5">
                Copyright &copy; 2018 Company Name - Design:
                <a rel="nofollow" href="http://tooplate.com" class="tm-footer-link">Tooplate</a>
            </p>
        </div>
    </footer>
</body>
<script>
    $(function () {
        var uid = getParameter("uid")
        $.post("/photograph/user/getUser",{uid:uid},
            function (data) {
               $("#showMy").html( '<li class="nav-item" style="margin: 0px" >\n' +
                '            <a href="myfavorite.html?uid='+ data.data.uid +' " id="favorite">\n' +
                '                收藏夹\n' +
                '                <span>FAVORITE</span>\n' +
                '            </a>\n' +
                '        </li>\n' +
                '        <li class="nav-item"  style="margin: 0px">\n' +
                '            <a href="photoUpload.html?uid=' + data.data.uid + '" id="photoUpload">\n' +
                '                上传图片\n' +
                '                <span>PHOTOUPLOAD</span>\n' +
                '            </a>\n' +
                '        </li>\n' +
                '        <li class="nav-item"  style="margin: 0px">\n' +
                '            <a href="useruploadpage.html?aid='+ data.data.uid+'" id="uploadRecord">\n' +
                '                上传记录\n' +
                '                <span>UPLOADRECORD</span>\n' +
                '            </a>\n' +
                '        </li>\n' +
                '        <li class="nav-item"  style="margin: 0px">\n' +
                '            <a href="userInfo.html?uid=' + data.data.uid + '" id="userInfo">\n' +
                '                账户信息\n' +
                '                <span>USERINFO</span>\n' +
                '            </a>\n' +
                '        </li>\n' +
                '        <li class="nav-item"  style="margin: 0px">\n' +
                '            <a href="sendemail.html" id="modifyPwd">\n' +
                '                修改密码\n' +
                '                <span>MODIFYPWD</span>\n' +
                '            </a>\n' +
                '        </li>')
                // $("#favorite").html('<a href="myfavorite.html?uid=' + data.data.uid + '" class="tm-white-text" >收藏夹</a>');
                // $("#photoUpload").html('<a href="photoUpload.html?uid=' + data.data.uid + '" class="tm-white-text">上传图片</a>');
                // $("#uploadRecord").html('<a href="useruploadpage.html?aid='+ data.data.uid+'" class="tm-white-text">上传记录</a>');
                // $("#userInfo").html('<a href="userInfo.html?uid=' + data.data.uid + '" class="tm-white-text">账户信息</a>')
                // $("#modifyPwd").html('<a href="sendemail.html" class="tm-white-text">修改密码</a>')
            },"json");

    })
</script>

</html>